package com.study.zk.web;

import com.study.zk.service.PayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: chenhs
 * @date: Created in 6:49 2019/12/9
 **/
@RestController
@RequestMapping("/api")
public class PayController {

    @Autowired
    PayService payService;

    @RequestMapping("/pay")
    public String doPay(String type) {
        String testInfo = payService.pay(type);
        return testInfo;
    }

}
